package temp

import (
	"background/model/back/entity"
)

// 支付方式

type Payment struct {
	ID      uint   `gorm:"primarykey"`
	Name    string `gorm:"column:name;comment:'名称';type:varchar(255)"   json:"name"`
	Icon    string `gorm:"column:icon;comment:'图标';type:varchar(255)"   json:"icon"`
	Payment string `gorm:"column:payment;comment:'方式';type:varchar(255)"   json:"payment"`
	Show    bool   `gorm:"column:show;comment:'可用0false,1true';type:smallint"   json:"show"`
}

func (c Payment) TableName() string {
	return entity.ProjectPre + "payment"
}
